package cn.school.attendance.classes.entity;

import java.util.List;

public class Page {

    private int pageNum;
    private int pageSize;
    //总条数
    private int pageCount;
    //总页数
    private int pageCountSize;

    private List<?> content;

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageCount() {
        return pageCount;
    }

    public void setPageCount(int pageCount) {
        this.pageCount = pageCount;
        pageCountSize=pageCount%pageSize==0?pageCount/pageSize:pageCount/pageSize+1;
    }

    public int getPageCountSize() {
        return pageCountSize;
    }

    public void setPageCountSize(int pageCountSize) {
        this.pageCountSize = pageCountSize;
    }

    public List<?> getContent() {
        return content;
    }

    public void setContent(List<?> content) {
        this.content = content;
    }
}
